import React, { useState, useEffect } from "react";
// import { useLifecycles } from "react-use";
import useLifecycles from "../../hooks/customs/useLifecycles";

const TestUseLifeCycles = () => {
    useLifecycles(() => console.log('MOUNTED'), () => console.log('unmounted'))
    const [,setNum ] = useState(0);

    useEffect(() => {
        setTimeout(() => {
            setNum(1);
        }, 1000);
    }, []);
    return null

}

export default TestUseLifeCycles
